\chapter{Valgrind Testresultat}\label{chap:valgrind}

Um das Framwork auf mögliche Memory Leaks zu testen, wurde auf dem Hostsystem das Testprogramm mit Valgrind\cite{valgrind} überprüft, der Test war negativ:
\begin{verbatim}
bash> valgrind --leak-check=yes --show-reachable=yes ./lcv-framwork-test

==9222== Memcheck, a memory error detector.
==9222== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==9222== Using LibVEX rev 1732, a library for dynamic binary translation.
==9222== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==9222== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation framework.
==9222== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==9222== For more details, rerun with: -v
==9222==
STARTING TEST PROGRAMM

LOG-MODULE:
writing into logfile... ok
disable logging... ok
logging an entry wich must not be written to the logfile... ok
enable logging... ok

GPIO-MODULE:
reading port IN_0: 1
reading port IN_1: 1
writing 1 to port OUT_0
writing 0 to port OUT_0
simulating input 0 at port 0
reading port IN_0: 0
setting output event-handler
writing 1 to port OUT_0
GPIO Event-Handler was called:
 -> gpio_write_simulator(0, 1)

CAM-MODULE:
Testing registers:
read analog_gain... value is: 16
write analog_gain to 20... register written
read analog_gain...value is: 20
read illegal register... ok
write illegal register... detected (returned an error-msg)
configure camera... ok
Testing Capture-Functions:
capture frame... ok

DIP-MODULE:
capturing frame (should have been tested before)... ok
writing invert bmp... ok
writing reversed bmp... ok
writing gray bmp... ok
writing gray inverted bmp... ok
writing gray reversed bmp... ok
averange value of gray... 226

HTML-VIEW:
writing html file... ok

TEST COMPLETED
==9222== 
==9222== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 1)
==9222== malloc/free: in use at exit: 0 bytes in 0 blocks.
==9222== malloc/free: 56 allocs, 56 frees, 16,250,877 bytes allocated.
==9222== For counts of detected errors, rerun with: -v
==9222== All heap blocks were freed -- no leaks are possible.
\end{verbatim}